#include <windows.h>

#include "CNpcTextPacket.h"
#include "CBaseEntity.h"

CNpcTextPacket::CNpcTextPacket(CBaseEntity * pEntity, unsigned long messageID) {
	this->type = 0x36;
	this->size = 0x08;

	memset(data, 0, sizeof(data));

	unsigned short targID = 0;
	targID = pEntity->getTargId();

	memcpy(data+0x04-0x04, &pEntity->m_id, 4);
	memcpy(data+0x08-0x04, &targID, 2);
	memcpy(data+0x0A-0x04, &messageID, 4);
}

CNpcTextPacket::~CNpcTextPacket() {

}